<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
      
<ui:composition template="/WEB-INF/template/fullPageTemplateEmpty.xhtml">
    
    <ui:define name="contentLayout">
		   <p:layoutUnit position="center">  
			<h:form>  
				<p:growl id="growl" showDetail="true" life="3000" globalOnly="true"/>
				
			  	<p:dialog visible="true" modal="flase" draggable="false" resizable="false" closable="false">
			        <h:panelGrid columns="2" cellpadding="5">  
			            <h:outputLabel for="username" value="Nombre de Usuario:" />  
			            <p:inputText value="#{loginController.username}"   
			                    id="username" required="true" label="username" />  
			              
			            <h:outputLabel for="password" value="Contraseña:" />  
			            <h:inputSecret value="#{loginController.password}"   
			                    id="password" required="true" label="password" />  
			              
			            <f:facet name="footer">  
			                <p:commandButton id="loginButton" value="Entrar" update="growl" type="submit" icon="ui-icon-circle-arrow-e"
			                    action="#{loginController.login}"/>  
			            </f:facet>  
			        </h:panelGrid>  
				</p:dialog>	 
			</h:form>  
		</p:layoutUnit>         
    </ui:define>
 
</ui:composition>

</html>

